package com.xingchen.feima.system.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@ApiModel(value = "路由对象", description = "路由对象封装")
@Data
public class RouteVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "路由路径")
    private String path;

    @ApiModelProperty(value = "组件地址")
    private String component;

    @ApiModelProperty(value = "是否隐藏路由，当设置true的时候该路由不会再侧边栏出现")
    private boolean hidden;

    @ApiModelProperty(value = "当你一个路由下面的 children 声明的路由大于1个时，自动会变成嵌套的模式--如组件页面")
    private Boolean alwaysShow;

    @ApiModelProperty(value = "meta路由")
    private MetaVo meta;

    @ApiModelProperty(value = "子路由")
    private List<RouteVo> children;


}
